Repository navigation
Business Info Page - #30924
Business Info Page#30924mountiny merged 34 commits into
Conversation
…marcin/business-info-page
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
|
||
| useEffect(() => { | ||
| // Value is provided to input via props and onChange never fires. We have to save draft manually. | ||
| if (shouldSaveDraft && formID !== '') { |
There was a problem hiding this comment.
do we need a shouldSaveDraft prop? Looks like for this action we need only formID. When we pass shouldSaveDraft but without formID this action still doesn't work. So looks like shouldSaveDraft is not needed
There was a problem hiding this comment.
I don't remember exactly as @MrMuzyk made this change in his PR, however I believe this is to keep the inputs and shouldSaveDraft the same.
There was a problem hiding this comment.
Its true that shouldSaveDraft is not needed. I think it would make sense to cut it and rename formID to formIDToSaveDraft so it is clear what will happen once we pass it
|
Can you fix accessibility props too? Otherwise, it will also throw a warning in the console. |
|
Have you done |
|
@shubham1206agra fixed padding issues on state selector and full name on confirmation page as well as the a11y props you asked for, is there anything else you found?
|
|
Ah okay. Can we confirm by testing with an actual name and without any name at all? |
@shawnborton It should look like this since component is reused |
|
Cool, thanks for confirming! |
in the actual flow the user won't be able to leave this field empty, so this situation is not going to happen |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-11-14.at.8.10.38.PM.movAndroid: mWeb ChromeScreen.Recording.2023-11-14.at.7.15.13.PM.moviOS: NativeScreen.Recording.2023-11-14.at.7.31.27.PM.moviOS: mWeb SafariScreen.Recording.2023-11-14.at.4.59.13.PM.movMacOS: Chrome / SafariScreen.Recording.2023-11-13.at.9.41.37.PM.movMacOS: DesktopScreen.Recording.2023-11-14.at.7.21.44.PM.mov |
|
@Swor71 Can you quickly put test steps in the correct format? |
|
@mountiny Can you just confirm this placeholder #30924 (comment)? |
not sure if I understand, what is the problem with the format of test steps? |
I think not as a checklist I mean |
| INPUT_KEY: { | ||
| COMPANY_NAME: 'companyName', | ||
| COMPANY_TAX_ID: 'companyTaxID', | ||
| COMPANY_WEBSITE: 'website', |
There was a problem hiding this comment.
Why is this not companyWebsite?
There was a problem hiding this comment.
I see that has been used before, can we fix it here?
There was a problem hiding this comment.
@mountiny hm where did you find companyWebsite as the key? I've moved what was there in the CompanyStep component to the new components and their respective keys:
There was a problem hiding this comment.
unless you meant the translation, which is here https://github.com/Expensify/App/pull/30924/files#diff-2a9066512656fa29b1565e362127de5cc11ba95b28f143a9db26f76dc3750785R1379
There was a problem hiding this comment.
Discussed we can do that later
| const payload = { | ||
| bankAccountID: getDefaultStateForField({reimbursementAccount, fieldName: 'bankAccountID', defaultValue: 0}), | ||
| ...values, | ||
| ...getBankAccountFields(['routingNumber', 'accountNumber', 'bankName', 'plaidAccountID', 'plaidAccessToken', 'isSavings']), | ||
| companyTaxID: values.companyTaxID.replace(CONST.REGEX.NON_NUMERIC, ''), | ||
| companyPhone: parsePhoneNumber(values.companyPhone, {regionCode: CONST.COUNTRY.US}).number.significant, |
There was a problem hiding this comment.
{BZ Checklist} this might have caused #50103,
RC:
- When navigating back to the company tax page, clicking the "Next" button again triggers UpdateCompanyInformationForBankAccount with the website data as "https://", which is an invalid value. As a result, the backend returns an Onyx error:
This was fixed in #50715








This PR adds Business Info Page sub step
Details
Fixed Issues
$ #30418
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2023-11-08.at.15.56.06.mp4
Android: mWeb Chrome
andr.web.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.web.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop